<?php $format = Yii::app()->format; ?>

<div class="view">

	<div>
		<?php
		$properties = array(
			'items'=>$data->getMenu('index', true),
			'htmlOptions'=>array(
				'class'=>'operations',
			),
			'encodeLabel'=>false,
		);
		$this->widget('zii.widgets.CMenu', $properties);
		?>
	</div>
	
	<hr />

	<?php
	$src = $data->employee->photoBehavior->getFileUrl('thumb');
	$alt = 'Photo';
	$htmlOptions = array(
		'class'=>'stroke round column',
	);
	echo CHtml::image($src, $alt, $htmlOptions);
	?>
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('employeeId')); ?>:</b>
	<?php echo CHtml::encode($data->employee->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	<?php echo CHtml::encode($data->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('debit')); ?>:</b>
	<?php echo CHtml::encode($data->debit); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('start')); ?>:</b>
	<?php echo $format->formatDate($data->unixStart); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('balance')); ?>:</b>
	<?php echo CHtml::encode($data->balance); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
	<?php echo CHtml::encode($data->status); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('supervisor')); ?>:</b>
	<?php
	if ($data->employee->supervisor) {
		echo CHtml::encode($data->employee->supervisor->name);
	}
	?>
	<br />

	<?php echo $format->formatNtext($data->note); ?>
	
	<div class="clear"></div>

</div>